package com.manager.serviceImp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.manager.bean.student;
import com.manager.dao.StudentMapper;
import com.manager.service.StudentService;
@Service
@Transactional
public class StudentServiceImp implements StudentService {
	@Autowired
	private StudentMapper studentMapper;

	@Override
	public List<student> findStudent(int id) {
		// TODO Auto-generated method stub
		return studentMapper.findStudent(id);
	}

	@Override
	public List<student> listStudent() {
		// TODO Auto-generated method stub
		return  studentMapper.listStudent();
	}

	@Override
	public void deleteStudent(int id) {
		// TODO Auto-generated method stub
		studentMapper.deleteStudent(id);
	}

	@Override
	public void updateStudent(student student) {
		// TODO Auto-generated method stub
		studentMapper.updateStudent(student);
	}

	@Override
	public void addStudent(student student) {
		// TODO Auto-generated method stub
		studentMapper.addStudent(student);
	}
	
}
